
#include <SetLoadingScreen.h>
#include <World.h>

SetLoadingScreen::SetLoadingScreen(World* worldptr, truth showScreen)
:Command(CommandType::BLOCKING)
,world(worldptr)
,stateToSet(showScreen)
{}

SetLoadingScreen::~SetLoadingScreen() 
{}

truth SetLoadingScreen::Execute()
{
	world->SetLoading(stateToSet);
	complete = 1;

	return 1;
}